Description
-----------

The Unit Converter is a new kind of device I want to introduce for use in WC3
maps.

Its goal is to convert units:

  1) the player chooses some of the units and puts them in the converter;

  2) a preview of the obtainable units is shown;

  3) if the player confirms (by putting a hero in a given point of the map), the units are converted.

The Unit Converter is entirely made using JASS.

The Unit Converter is highly configurable (look at the JASS code and the comments to understand how) for example in term of:

  1) maximum number of convertible units;
  2) maximum sum of the levels of the convertible units;
  3) maximum level of the converted units;
  4) set from which converted units are chosen ( 1-tileset creeps, 2-all non-hero non-campaign units, 3-customizable)
  5) owner(s) of the units to convert;
  6) owner(s) of the triggering heros (i.e. the heros that can activate the Unit Converter);
  5) number of Unit Converters in the map.



History
-------

V. 1.0 (29/04/2005)

	* First version

v. 1.1 (07/05/2005)

	* calculation of converted unit(s) level is customizable
	* default calculation of converted unit(s) is made by substracting half of the number of units to be converted from the sum of the levels of the units to be converted
